package cn.fuck;

import java.time.LocalDate;
import java.util.PriorityQueue;


public class TestPriorityQueue {
    public static void main(String[] args) {
        PriorityQueue<LocalDate> strings = new PriorityQueue<>();
        strings.add(LocalDate.of(1999, 9, 9));
        strings.add(LocalDate.of(2000, 9, 9));
        strings.add(LocalDate.of(1888, 9, 9));

        System.out.println(strings.peek());  // 1888-09-09
    }
}
